﻿@using Ext.Net.MVC
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link rel="stylesheet" href="@Url.Content("~/resources/css/examples.css")" />
    @RenderSection("headtag", false)
</head>
<body>
      @Html.X().ResourceManager(ViewBag.ManagerConfig as MvcResourceManagerConfig)
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>
                    Social Game Application</h1>
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
            </div>
            @if (Request.IsAuthenticated)
            {              
                <ul class="sf-menu">
                    <li>
                        @Html.ActionLink("Quản trị thành viên", "List", "Account")
                    </li>
                    <li>
                        @Html.ActionLink("Quản lý câu hỏi", "Index", "Question")
                        <ul>
                            <li>@Html.ActionLink("Khai báo lĩnh vực", "Index", "Field")</li>
                        </ul>
                    </li>
                    <li>
                        @Html.ActionLink("Hệ thống", "Index", "Home")
                    </li>
                    <li>
                        @Html.ActionLink("Trợ giúp", "Index", "Home")
                    </li>
                </ul>
            }
            <div id="menucontainer">
            </div>
        </div>
        <div id="main">
            <div id="content_body">
                @RenderBody()
            </div>
        </div>
        <div id="footer">
        </div>
</body>
</html>
